<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var a = {
            name:"张三",
        }
        var b = {
            a,//此时的b对象里面的a不是一个属性，而是一个变量
        }
        console.log(b.a);
    </script>
</body>
</html>